Optimal. Leaf size=50 \[ \frac {d \sin (a+b x) \cos (a+b x)}{4 b^2}+\frac {(c+d x) \sin ^2(a+b x)}{2 b}-\frac {d x}{4 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {4404, 2635, 8} \[ \frac {d \sin (a+b x) \cos (a+b x)}{4 b^2}+\frac {(c+d x) \sin ^2(a+b x)}{2 b}-\frac {d x}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2635
Rule 4404
Rubi steps
\begin {align*} \int (c+d x) \cos (a+b x) \sin (a+b x) \, dx &=\frac {(c+d x) \sin ^2(a+b x)}{2 b}-\frac {d \int \sin ^2(a+b x) \, dx}{2 b}\\ &=\frac {d \cos (a+b x) \sin (a+b x)}{4 b^2}+\frac {(c+d x) \sin ^2(a+b x)}{2 b}-\frac {d \int 1 \, dx}{4 b}\\ &=-\frac {d x}{4 b}+\frac {d \cos (a+b x) \sin (a+b x)}{4 b^2}+\frac {(c+d x) \sin ^2(a+b x)}{2 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 34, normalized size = 0.68 \[ \frac {d \sin (2 (a+b x))-2 b (c+d x) \cos (2 (a+b x))}{8 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.63, size = 42, normalized size = 0.84 \[ \frac {b d x - 2 \, {\left (b d x + b c\right )} \cos \left (b x + a\right )^{2} + d \cos \left (b x + a\right ) \sin \left (b x + a\right )}{4 \, b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.72, size = 38, normalized size = 0.76 \[ -\frac {{\left (b d x + b c\right )} \cos \left (2 \, b x + 2 \, a\right )}{4 \, b^{2}} + \frac {d \sin \left (2 \, b x + 2 \, a\right )}{8 \, b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 74, normalized size = 1.48 \[ \frac {\frac {d \left (-\frac {\left (b x +a \right ) \left (\cos ^{2}\left (b x +a \right )\right )}{2}+\frac {\cos \left (b x +a \right ) \sin \left (b x +a \right )}{4}+\frac {b x}{4}+\frac {a}{4}\right )}{b}+\frac {d a \left (\cos ^{2}\left (b x +a \right )\right )}{2 b}-\frac {c \left (\cos ^{2}\left (b x +a \right )\right )}{2}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.33, size = 65, normalized size = 1.30 \[ -\frac {4 \, c \cos \left (b x + a\right )^{2} - \frac {4 \, a d \cos \left (b x + a\right )^{2}}{b} + \frac {{\left (2 \, {\left (b x + a\right )} \cos \left (2 \, b x + 2 \, a\right ) - \sin \left (2 \, b x + 2 \, a\right )\right )} d}{b}}{8 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.70, size = 47, normalized size = 0.94 \[ \frac {d\,\sin \left (2\,a+2\,b\,x\right )}{8\,b^2}-\frac {c\,\cos \left (2\,a+2\,b\,x\right )}{4\,b}-\frac {d\,x\,\cos \left (2\,a+2\,b\,x\right )}{4\,b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.47, size = 80, normalized size = 1.60 \[ \begin {cases} - \frac {c \cos ^{2}{\left (a + b x \right )}}{2 b} + \frac {d x \sin ^{2}{\left (a + b x \right )}}{4 b} - \frac {d x \cos ^{2}{\left (a + b x \right )}}{4 b} + \frac {d \sin {\left (a + b x \right )} \cos {\left (a + b x \right )}}{4 b^{2}} & \text {for}\: b \neq 0 \\\left (c x + \frac {d x^{2}}{2}\right ) \sin {\relax (a )} \cos {\relax (a )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________